package decorator;

import component.GraphicComponent;

// Decorator: 图形装饰器
public abstract class GraphicDecorator implements GraphicComponent {
    protected GraphicComponent component;

    public GraphicDecorator(GraphicComponent component) {
        this.component = component;
    }

    @Override
    public void draw() {
        component.draw();
    }
}